﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestModuleManage.aspx.cs"
    Inherits="BOH.DataManagement.TestModuleManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />

    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="OverView.aspx" target="frameControl">后台数据管理</a> >> 抽提类型管理
    </div>
    <div id="bodyDiv">
        <div id="divSearch">
            <a href="NewSubjectTestModule.aspx" target="frameControl">添加考试科目</a> &nbsp;&nbsp;&nbsp;&nbsp;
            <%--<asp:LinkButton ID="butDelete" runat="server" OnClick="butDelete_Click">删除</asp:LinkButton>--%>
        </div>
        <div id="divGrid">
        <asp:HiddenField ID="hiddenSelected" runat="server" />
            <asp:GridView ID="gvTestModuleList" runat="server" AutoGenerateColumns="False" Width="98%"
                CssClass="Grid" AllowPaging="false" PageSize="15"
                onrowediting="gvTestModuleList_RowEditing" 
                onrowdatabound="gvTestModuleList_RowDataBound" 
                onrowcancelingedit="gvTestModuleList_RowCancelingEdit" 
                onrowupdating="gvTestModuleList_RowUpdating" >
                <PagerSettings Mode="NumericFirstLast" />
                <Columns>
                    <asp:TemplateField HeaderText="学科组">
                        <ItemTemplate>
                        <asp:HiddenField ID="hideSN" runat="server" Value='<%#Eval("SN") %>' />
                            <asp:Label ID="labTestTypeID" Text='<%#Eval("SubjectID ") %>' runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="学科组名称">
                        <ItemTemplate>
                            <asp:Label ID="labSubjectName" Text='<%#Eval("SubjectName ") %>' runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="抽提模式">
                        <ItemTemplate>
                            <asp:Label ID="labTestTypeName" Text='<%#GetModule(Eval("TestModule").ToString()) %>' runat="server"></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <asp:HiddenField ID="hideTestModule" runat="server" Value='<%#Eval("TestModule") %>' />
                            <asp:DropDownList runat="server" ID="drpTestModule" AutoPostBack ="true" OnSelectedIndexChanged="TestModuleChanged">
                                <asp:ListItem Value="1">循环模式</asp:ListItem>
                                <asp:ListItem Value="2">去除模式</asp:ListItem>
                            </asp:DropDownList>
                            <asp:HiddenField ID="hideSubjectID" runat="server" Value='<%#Eval("SubjectID") %>' />
                            <asp:Button ID="butRefresh" runat="server" Text="重置" Visible="false" OnClick="RefreshCanUse" />
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField HeaderText="修改" CancelText="取消" EditText="编辑" UpdateText="更新" ButtonType="Link"  ShowEditButton="true" ShowCancelButton="true"  HeaderStyle-Width="80" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/>
                </Columns>
                <AlternatingRowStyle CssClass="ARow" />
             </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
